<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<% String path = request.getContextPath().equals("//") ? "" : request.getContextPath(); %>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>menu</title>
		<link href="<s:url value="/css/style.css" />" rel="stylesheet" type="text/css" />
	</head>
	
	<body bgcolor="#996666" >
	
	<table class="listflow" height="100%" cellspacing="0" cellpadding="0">
  
		<tr height="100%">
			<td class="listbg" valign="top" height="100%">
				<dl>
					<dt id="menuTitle1" class="menu_title" onclick="showsubmenu(1)">订单管理</dt>
					<dd id="submenu1">
						<ul>
							<li>
								<s:a value="menuList" target='mainFrame' >菜单管理</s:a>
							</li>
							<li>
								<s:a value="systemUserList" target='mainFrame' >用户管理</s:a>
							</li>
							<li>
								<a href="<%=path %>/admin/info.do?type=3" target="mainFrame">待付款</a>
							</li>
							<li>
								<a href="<%=path %>/admin/info.do?type=3" target="mainFrame">我的购物车</a>
							</li>
						</ul>
					</dd>
				</dl>
				<dl>
					<dt id="menuTitle2" class="menu_title" onclick="showsubmenu(2)">资产管理</dt>
					<dd id="submenu2">
						<ul>
							<li>
								<a href="<%=path %>/admin/serviceAdd.do" target="mainFrame">我的资产</a>
							</li>
							<li>
								<a href="<%=path %>/admin/serviceList.do" target="mainFrame">交易列表</a>
							</li>
							<li>
								<a href="<%=path %>/admin/serviceList.do" target="mainFrame">资产明细</a>
							</li>
							<li>
								<a href="<%=path %>/admin/serviceList.do" target="mainFrame">我要提现</a>
							</li>
							<li>
								<a href="<%=path %>/admin/serviceList.do" target="mainFrame">我的积分</a>
							</li>
						</ul>
					</dd>
				</dl>
				<dl>
					<dt id="menuTitle3" class="menu_title" onclick="showsubmenu(3)">我的账号</dt>
					<dd id="submenu3">
						<ul>
							<li>
								<a href="<%=path %>/admin/storiesAdd.do" target="mainFrame">基本信息</a>
							</li>
							<li>
								<a href="<%=path %>/admin/storiesList.do?type=0" target="mainFrame">收货地址</a>
							</li>
							<li>
								<a href="<%=path %>/admin/storiesList.do?type=1" target="mainFrame">提现设置</a>
							</li>
							<li>
								<a href="<%=path %>/admin/storiesList.do?type=2" target="mainFrame">我的邀请</a> 
							</li>
						</ul>
					</dd>
				</dl>
				<dl>
					<dt id="menuTitle4" class="menu_title" onclick="showsubmenu(4)">安全中心</dt>
					<dd id="submenu4">
						<ul>
							<li>
								<a href="<%=path %>/admin/finishedAdd.do" target="mainFrame">安全信息</a> 
							</li>
							<li>
								<a href="<%=path %>/admin/finishedList.do" target="mainFrame">修改密码</a>
							</li>
						</ul>
					</dd>
				</dl>
				<dl style="height: 100%;">
					<dt style="height: 100%;">
						&nbsp;
					</dt>
				</dl>
			</td>
		</tr>
		<tr>
			<td class="listbg" style="text-align: center; color: #FFF; padding-left: 0px; font: bold; vertical-align: bottom;"> 
				<label>Version: 20130721</label>
			</td>
		</tr>
		<tr>
			<td class="navbottom" style="BACKGROUND-REPEAT: no-repeat;"></td>
		</tr>
	</table>
</body>

<script language="JavaScript">
	
	function showsubmenu(sid) {
		
		var whichEl = document.getElementById("submenu" + sid);
		var menuTitle = document.getElementById("menuTitle" + sid);
		
		if (whichEl != null) {
			
			if (whichEl.style.display){
				closeAllMenu();
			}
			
			if (whichEl.style.display == "none"){
				whichEl.style.display='';
				
				if (menuTitle!=null)
					menuTitle.className='menu_title';
			}
			else{
				whichEl.style.display='none';
				
				if (menuTitle!=null)
					menuTitle.className='menu_title2';
			}
		}
	}
	
	function closeSubMenu(sid) {
		
		var whichEl = document.getElementById("submenu" + sid);
		var menuTitle = document.getElementById("menuTitle" + sid);
		
		if (whichEl != null) {
			
			whichEl.style.display='none';
			
			if (menuTitle!=null)
				menuTitle.className='menu_title2';
		}
	}
	
	function closeAllMenu() {
		
		for (var i = 1; i < 7; i++) {
			
			closeSubMenu(i);
		}
	}
	
	closeAllMenu();
	
	showsubmenu(1);
	
</script>
</html>